<template>
  <!-- 路由占位符 -->
  <transition name="slide-fade" mode="out-in">
    <router-view></router-view>
    <!-- <keep-alive>
              </keep-alive> -->
  </transition>
</template>

<script>
export default {};
</script>

<style lang="less" scoped>
/* 可以设置不同的进入和离开动画 */
/* 设置持续时间和动画函数 */

.slide-fade-enter-active {
  transition: all 0.3s ease;
}
.slide-fade-leave-active {
  transition: all 0.5s cubic-bezier(1, 0.5, 0.8, 1);
}
.slide-fade-enter, .slide-fade-leave-to
/* .slide-fade-leave-active for below version 2.1.8 */ {
  transform: translateX(20px);
  opacity: 0;
}
</style>
